﻿@using MudBlazor.Resources
@namespace MudBlazor
@inherits MudComponentBase
@inject InternalMudLocalizer Localizer

<div @attributes="UserAttributes" class="mud-treeview-item-arrow" @ondblclick="OnDoubleClick" @ondblclick:stopPropagation="true">
    @if (Visible)
    {
        <MudIconButton Disabled="@Disabled"
                       OnClick="@ToggleAsync"
                       Icon="@(Loading ? LoadingIcon : ExpandedIcon)"
                       Color="@(Loading ? LoadingIconColor : ExpandedIconColor)"
                       Class="@Classname"
                       Style="@Style"
                       aria-label="@(Expanded ? @Localizer[LanguageResource.MudTreeView_CollapseItem] : @Localizer[LanguageResource.MudTreeView_ExpandItem])" />
    }
</div>

